<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>

<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Welcome">
  <s:layout-component name="body">
    <p>Congratulations, you've set up a Stripes project!</p>
    <p>
      You are running Java version ${actionBean.javaVersion}
      on the ${actionBean.osName} operating system.
    </p>
    <p>
      People:
    </p>
    <ul>
      <c:forEach var="p" items="${actionBean.people}">
        <li>${p.email}: ${p.firstName} ${p.lastName}</li>
      </c:forEach>
    </ul>
    <p>
      Try the validation:
    </p>
    <s:form beanclass="validator.action.HomeActionBean">
      <s:errors globalErrorsOnly="true"/>
      Email:<br>
      <s:text name="person.email"/> <s:errors field="email"/><br><br>
      First name:<br>
      <s:text name="person.firstName"/> <s:errors field="firstName"/><br><br>
      Last name:<br>
      <s:text name="person.lastName"/> <s:errors field="lastName"/><br><br>
      <s:submit name="save" value="Save"/>
    </s:form>
  </s:layout-component>
</s:layout-render>
